@model IQuestionModel

@this.CreateForm()

@AddControls(
    new Fieldset("w98p mh50", Str.Business.Common.Description)
    {
        new DefinitionList(PercentForLabel.p10)
        {
            new TextOrInput()
                .SetSourceProperty(() => Model.Item.Title),
            new TextOrInput()
                .SetSourceProperty(() => Model.Item.Description),
        }
    })

@AddControls(new AnswerTable("w98p mh100") { Prefix = "Answer" })

@AddControls(
    new Fieldset("w40p mh80 ", Str.Business.Common.Identification)
    {
        new DefinitionList(PercentForLabel.p50)
        {
            new CheckBox()
                .SetSourceProperty(() => Model.Item.IsApproved)
                .SetCssClassName("right"),
            new TextOrInput().SetSourceProperty(() => Model.Item.ValidUntil),
            new TextOrInput(true)
                .SetSourceProperty(() => Model.Item.ID),
        }
    })

@this.CloseForm()